import { defineStore } from 'pinia';
import { reactive, ref } from "vue";
import { imgPath } from "@/common/utils";

export const useStore = defineStore('navs', () => {
  const navs = reactive({
    list: [
      {
        label: '首页',
        name: 'home',
      },
      {
        label: '保险超市',
        name: 'GroupList',
        children: [
          {
            icon: () => <img src={imgPath('/travel-agency.png')} />,
            title: '旅行社',
            children: [
              {
                label: '旅行社责任保险示范项目',
                path: '/duty/detial?id=1',
              },
              {
                label: '西藏旅行社责任保险',
                path: '/detail?productCode=20PR415876&id=西藏旅行社责任保险',
              },
              {
                label: '境内旅游（不含港澳台）',
                path: '/GroupList?id=境内旅游',
              },
              {
                label: '出境旅游（含港澳台）',
                path: '/GroupList?id=出境旅游',
              },
              {
                label: '台湾游',
                path: '/GroupList?id=台湾游',
              },
              {
                label: '日本游',
                path: '/GroupList?id=日本游',
              },
              {
                label: '研学专属',
                path: '/GroupList?id=研学专属',
              },
              {
                label: '自驾专属',
                path: '/GroupList?id=自驾专属',
              },
              {
                label: '航空意外',
                path: '/GroupList?id=航空意外',
              },
              {
                label: '赴欧游',
                path: '/GroupList?id=赴欧游',
              },
              {
                label: '赴东南亚游',
                path: '/GroupList?id=赴东南亚游',
              },
              {
                label: '赴美加澳新',
                path: '/GroupList?id=赴美加澳新',
              },
            ]
          },
          {
            icon: () => <img src={imgPath('/scenic-spot.png')} />,
            title: '景区',
            children: [
              {
                label: '山东景区安责险',
                path: '/propertyLiability/details?productCode=21PR615995&id=山东省旅游景区安全生产责任保险',
              },
            ]
          },
          {
            icon: () => <img src={imgPath('/tourism-consumers.png')} />,
            title: '文旅消费者',
            children: [
              {
                label: '境内旅游',
                path: '/PersInsureList?id=境内旅游',
              },
              {
                label: '特色保障',
                path: '/PersInsureList?id=特色保障',
              },
              {
                label: '户外运动',
                path: '/PersInsureList?id=户外运动',
              },
              {
                label: '交通安全',
                path: '/PersInsureList?id=交通安全',
              },
            ]
          },
          {
            icon: () => <img src={imgPath('/tourism-practitioners.png')} />,
            title: '文旅从业者',
            children: [
              {
                label: '从业人员',
                path: '/PersInsureDetail?productCode=20PR179908&productName=文旅行业从业人员一年期综合保险基础版&corporateName=&schemeName=基础版',
              },
              {
                label: '境内旅游',
                path: '/PersInsureList?id=境内旅游',
              },
              {
                label: '户外运动',
                path: '/PersInsureList?id=户外运动',
              },
              {
                label: '交通安全',
                path: '/PersInsureList?id=交通安全',
              },
              {
                label: '特色保障',
                path: '/PersInsureList?id=特色保障',
              },
            ]
          },
          {
            icon: () => <img src={imgPath('/homestay.png')} />,
            title: '民宿客栈',
            children: [
              {
                label: '民宿企业综合保险',
                path: '/propertyLiability/homeStayInsureDetail?productCode=21PR242331&id=民宿企业综合保险',
              },
              {
                label: '公众责任险',
                path: '/propertyLiability/details?productCode=20PR613323&id=公众责任保险',
              },
              {
                label: '雇主责任险',
                path: '/propertyLiability/details?productCode=20PR890597&id=雇主责任保险',
              },
            ]
          },
          {
            icon: () => <img src={imgPath('/tourism-transportation.png')} />,
            title: '旅游交通',
            children: [
              {
                label: '道路客运承运人责任保险',
                path: '/propertyLiability/roadCarrierDetail?projectCode=20XM923233',
              },
            ]
          },
          {
            icon: () => <img src={imgPath('/perform.png')} />,
            title: '演出剧场',
            children: [
              {
                label: '公众责任险',
                path: '/propertyLiability/details?productCode=20PR613323&id=公众责任保险',
              },
              {
                label: '雇主责任险',
                path: '/propertyLiability/details?productCode=20PR890597&id=雇主责任保险',
              },
              {
                label: '从业人员',
                path: '/PersInsureDetail?productCode=20PR179908&productName=文旅行业从业人员一年期综合保险基础版&corporateName=&schemeName=基础版',
              },
            ]
          },
        ],
      },
      // {
      //   label: '调解服务',
      //   name: 'dutyDemonstration',
      // },
      // {
      //   label: '索赔服务',
      //   name: 'dutyClaimService',
      // },
      // {
      //   label: '安全服务',
      //   name: 'safetyDetail',
      // },
      // {
      //   label: '数据服务',
      //   name: 'dataService',
      // },
      // {
      //   label: '保险知识',
      //   name: 'insuranceKnowledge',
      // },
    ],
    
  });
  return {
    navs
  }
})